import { observable, action } from 'mobx-miniprogram'

export const store = observable({
  // tabbar页面索引
  activeTabBarIndex: 0,
  authorization: '696d646f-2964-4ce2-9ff5-38a6dbd00965',
  updateActiveTabBarIndex: action(function (index) {
    this.activeTabBarIndex = index
  }),
  updateAuthorization: action(function (authorization) {
    this.authorization = authorization
  })
})